<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>失物招领信息</title>
<style type="text/css">
	html {
		border: 0px solid yellow;
		box-sizing: border-box;
		min-height: 100vh;
	}
	
	body {
		border: 0px solid black; 
		box-sizing: border-box;
		margin: 0;
		padding: 0;
		height: 100%;
	}
	
	#top {
		border: 0px solid red;
		border-bottom: 3px solid black;
		padding-top: 10px;
		padding-bottom: 10px;
		box-sizing: border-box;
		position: relative;
	}
	
	#top > span#tittle {
		border: 0px solid black;
		display: inline-block;
		margin-left: 50%;
		transform: translate(-50%, 0);
		font-size: xx-large;
		font-weight: bold;
	}
	
	#top > span#lianjie {
		border: 0px solid black;
		position: absolute;
		right: 0;
		bottom: 0; 
	}
	
	#middle {
		border: 0px solid blue;
		box-sizing: border-box;
		display: flex;
	}
	
	#middle > ul {
		border: 0px solid blue;
		border-right: 3px solid black;
		box-sizing: border-box;
		list-style: none;
		padding: 0;
		margin: 0;
		width: 20%;
	}
	
	#middle > ul > li {
		border: 0px solid green;
		text-align: center;
		padding-top: 5px;
		padding-bottom: 5px;
		margin: 0;
	}

	#middle > iframe {
		border: 0px solid gold;
		padding-top: 5px;
		padding-left: 5px;
		box-sizing: border-box;
		flex-grow: 1;
		height: 480px;
	}
</style>
</head>
<body>

	<div id="top">
		<span id="tittle">失物招领</span>
		<span id="lianjie">
			<c:choose>
				<c:when test="${empty(sessionScope.loginer)}">
					<a href="${pageContext.request.contextPath}/user-login.jsp">您还未登陆，去登陆</a>
				</c:when>
				<c:otherwise>
					欢迎您：${loginer.account}　
					<a href="${pageContext.request.contextPath}/LoginoutServlet/logout">退出</a>
				</c:otherwise>
			</c:choose>
		</span>
	</div>
	
	<div id="middle">
		<ul>
			<li>
				<a href="${pageContext.request.contextPath}/UserServlet/queryAllIntel" target="iframe">全部帖子</a>
			</li>
			<c:if test="${!empty(sessionScope.loginer)}">
				<li>
					<a href="${pageContext.request.contextPath}/user/add-one-intel.jsp" target="iframe">去发帖</a>
				</li>
				<%-- 
				<li>
					<a href="${pageContext.request.contextPath}/user/add-one-intel.jsp" target="iframe">查看我的帖子</a>
				</li>
				 --%>
			</c:if>
		</ul>
		<iframe name="iframe" src="https://www.idcd.com/tool/time/18"></iframe>
	</div>
	<!-- <hr style="transform:rotate(90deg)"> -->
	<jsp:include page="/msg.jsp"/>
</body>
</html>